<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<title>测试列表</title>
<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
</head>
<body>
	<div>
		<!-- 表格数据 -->
		<table id="userListId" title="可编辑用户表格" class="easyui-datagrid" 
		url="${ctx}/w/wh001/testList1_1" toolbar="#toolbarId" pagination="true" striped="true" height="370px;" width="100%">
			<thead>
				<tr>
					<th data-options="field:'id',checkbox:true" width="5%"></th>
					<th width="7%" data-options="field:'name'">名称</th>
					<th width="7%" data-options="field:'num'">编号</th>
					<th width="7%" data-options="field:'phone'">手机号</th>
					<th width="7%" data-options="field:'address'">地址</th>
					<th width="7%" data-options="field:'icon'">头像</th>
					<th width="7%" data-options="field:'flag'">标记</th>
					<th width="7%" data-options="field:'sex'">性别</th>
					<th width="7%" data-options="field:'age'">年龄</th>
					<th width="7%" data-options="field:'parent_name'">家长姓名</th>
				</tr>
			</thead>
		</table>
		<!-- 工具条 -->
		<div id="toolbarId" style="padding: 5px; height: auto">
			<div style="margin-bottom: 5px">
				<a href="javascript:void(0)" id="addUserId"
					class="easyui-linkbutton" onclick="openUserDialog()"
					iconCls="icon-add" plain="true">添加</a>
			</div>
		</div>
		<h2>shiro标签</h2>
		<shiro:hasPermission name="sys:user:edit">
			admin有[sys:user:edit]权限标识
		</shiro:hasPermission><br />
		<shiro:hasPermission name="sys:user:dele">
			admin有[sys:user:dele]权限标识
		</shiro:hasPermission><br />
		<shiro:hasPermission name="sys:user:view">
			admin有[sys:user:view]权限标识
		</shiro:hasPermission><br />
		<a href="${ctx }/w/layout">退出</a>
	</div>
	
</body>
</html>
